package com.example;

import java.util.Arrays;
import java.util.Scanner;

public class Test1 {
    public static void main(String[] args) {
        /* 定义接收器 */
        Scanner reader = new Scanner(System.in);
        /* 定义存分数的数组 */
        int[] scores = new int[10];
        /* 循环存入 */
        for (int i = 0; i < scores.length; i++) {
            scores[i] = reader.nextInt();
        }
        /* 升序排序 */
        Arrays.sort(scores);
        /* 8个评委打的总分 */
        int sum = 0;
        for (int i = 1; i < scores.length - 1; i++) {
            sum += scores[i];
        }
        float averageScore = sum / 8F;
        System.out.println("平均分为:" + averageScore);
    }
}
